/*
 *  AMPIconFrameUpdate.h
 *  AMPlugin
 *
 *  Created by Toan on 12/18/12.
 *  Copyright 2012 __MyCompanyName__. All rights reserved.
 *
 */
#ifndef __AMPIconFrameUpdate_H__
#define __AMPIconFrameUpdate_H__

//#include "iconFrame/FrmLblID.h"
//#include "iconFrame/FrmLblType.h"
//#include "iconFrame/IFrmLblDataSuite.h"
//#include "iconFrame/IFrmLblDataFacade.h"
#include "ITextFrameColumn.h"
#include "IPMUnknown.h"
#include "AMPID.h"
//#include "IAssignment.h"

#define  GRAPHICFRAME_UNPUBLISH		0
#define  GRAPHICFRAME_AVAILABLE		1	
#define  GRAPHICFRAME_LOCKED		2
#define  GRAPHICFRAME_EDITING		3	


// general includes
#include <iostream>
using namespace std;



class AMPManipulateTextFrame {
public:
	/** Constructor.
	 */
	AMPManipulateTextFrame() {}
	
	/** Destructor
	 */
	virtual ~AMPManipulateTextFrame() {}
	
	UIDRef QueryGraphicFrameRef(UIDRef storyUIDRef);
	
	ITextFrameColumn* QueryTextFrameContaining(ITextModel* textModel, const TextIndex at);
	
	UIDRef GetGraphicFrameRef(const InterfacePtr<ITextFrameColumn>& textFrameColumn, const bool16 isTOPFrameAllowed);

};

class AMPIconFrameUpdate{
public:
	AMPIconFrameUpdate() {
	}
	
	/** Destructor.
	 */
	virtual ~AMPIconFrameUpdate() {}
	
	static void LockPageItem(const UIDRef& pageItem);
	
private:
};

#endif //__AMPIconFrameUpdate_H__